package com.ymatou.iapi.productmanager.compare.oldapi;

import java.util.Map;

import org.json.JSONObject;

import com.ymatou.iapi.productmanager.service.CheckProductExistsActivityCall;
import com.ymttest.utils.EnvSetup;
import com.ymttest.utils.MapUtil;

public class OldCheckProductExistsActivityCallTurnNewCall extends CheckProductExistsActivityCall{
	
	public OldCheckProductExistsActivityCallTurnNewCall() {
		super(EnvSetup.getSystemUrl("sellerproduct_iapi"));
		
	}
	
	@Override
	public JSONObject callAndReturn(Map<String, Object> paramMap) {
		int sellerId = Integer.parseInt(paramMap.get("UserId").toString());
		String productId = paramMap.get("ProductId").toString();
		return this.callAndGetReturnData(MapUtil.hashMap("UserId", sellerId,"ProductId",productId,"TurnTo","java"));
	}
	
	
	public static void main(String[] args) {
		new OldCheckProductExistsActivityCallTurnNewCall().callAndGetReturnData();
	}

} 